<?php
/* @var $this VentPipeController */
/* @var $model VentPipe */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'vent-pipe-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'no'); ?>
		<?php echo $form->textField($model,'no'); ?>
		<?php echo $form->error($model,'no'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'size'); ?>
		<?php echo $form->textField($model,'size'); ?>
		<?php echo $form->error($model,'size'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'height'); ?>
		<?php echo $form->textField($model,'height',array('size'=>11,'maxlength'=>11)); ?>
		<?php echo $form->error($model,'height'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'unit_measurement_of_the_height'); ?>
		<?php echo $form->dropDownlist($model, 'unit_measurement_of_the_height',$model->getMeasurement() ,
		array('prompt' => 'Select a Unit of Measurement',)); ?>
		<?php echo $form->error($model,'unit_measurement_of_the_height'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'flame_arrester'); ?>
		<?php echo $form->textArea($model,'flame_arrester',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'flame_arrester'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'weatherhood'); ?>
		<?php echo $form->textArea($model,'weatherhood',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'weatherhood'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'inspection_id'); ?>
		<?php echo $form->textField($model,'inspection_id'); ?>
		<?php echo $form->error($model,'inspection_id'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->